<?
/*
%%%copyright%%%
 * phpMyTicket - ticket reservation system
 * Copyright (C) 2004-2005 Anna Putrino, Stanislav Chachkov. All rights reserved.
 *
 * This file is part of phpMyTicket.
 *
 * This file may be distributed and/or modified under the terms of the
 * "GNU General Public License" version 2 as published by the Free
 * Software Foundation and appearing in the file LICENSE included in
 * the packaging of this file.
 *
 * Licencees holding a valid "phpmyticket professional licence" version 1
 * may use this file in accordance with the "phpmyticket professional licence"
 * version 1 Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 *
 * The "phpmyticket professional licence" version 1 is available at
 * http://www.phpmyticket.com/ and in the file
 * PROFESSIONAL_LICENCE included in the packaging of this file.
 * For pricing of this licence please contact us via e-mail to 
 * info@phpmyticket.com.
 * Further contact information is available at http://www.phpmyticket.com/
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Contact info@phpmyticket.com if any conditions of this licencing isn't 
 * clear to you.
 
 */
?>
<?
require_once("AUIComponent.php");

class AUIBico extends AUIComponent{
  var $menu_width;
  var $cols_mins;
  
  function AUIBico($menu_width,$total_width){
    $this->menu_width=$menu_width;
    $this->total_width=$total_width;
  }

  function draw(){
    echo "<table border=0 width='$this->total_width' class='aui_bico'><tr>
    <td class='aui_bico_menu' width='".$this->menu_width."' valign=top>\n";
    $menu=$this->items["menu"];
    if(!$menu){
      $menu=$this->items[0];
    }

    $this->drawChild($menu);
    echo "</td><td class=aui_bico_body valign=top>";
  
    $body=$this->items["body"];
    if(!$body){
      $i=1;
      while($this->items[$i]){ 
       $body=$this->items[$i++];
       $this->drawChild($body);
      } 
    }else{
      $this->drawChild($body);
    }
    echo"</td></tr></table>\n";
  }
}
?>
